package com.dldata.display.control.Grinfo;

import com.dldata.base.businessmodel.SessionUserInfoEntity;
import com.dldata.base.utils.Public;
import com.dldata.base.utils.RightUtil;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.Map;
import java.util.Properties;

/**
 * Created by dj on 2018-09-17.
 */
@Controller
@RequestMapping(value = "/Grinfo")
public class Yj_KsListController {

    @RequestMapping(value = "/Yj_KsList")
    private String GetYj_KsInfoList(Model model, @RequestParam Map<String, Object> params, HttpServletRequest request, HttpServletResponse response){
        SessionUserInfoEntity sysStaffEntity = RightUtil.getCurrentUser(request);
        model.addAttribute("sysStaffEntity", sysStaffEntity);
        String userid =sysStaffEntity.getUid();
        String sysCode = sysStaffEntity.getSysCode();
        Properties prop= Public.sysConfig;
        String biIp = prop.getProperty("HBIURL","");
        model.addAttribute("biqtuser",sysStaffEntity.getLname());
        model.addAttribute("biIp",biIp);
        return "Grinfo/Yj_KsList";
    }
}
